import request from '@/router/axios';

export const getList = (page, size, params) => {
  return request({
    url: '/base/store/getStoreList',
    method: 'post',
    params: {
      ...params,
      page,
      size,
    }
  })
}
//根据店铺Id更新计提比例
export const setExtractRateByStoreId = (id,extractRate) => {
  return request({
    url: '/base/store/setExtractRateByStoreId',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      id,
      extractRate
    }
  })
}
//根据店铺Ids更新计提比例
export const setExtractRateByStoreIds = (ids,extractRate) => {
  return request({
    url: '/base/store/setExtractRateByStoreIds',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      ids,
      extractRate
    }
  })
}


